﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using coliseu.BussinessLayer;

namespace coliseu.Views.Condominio
{
    public partial class FrmConsFuncionario : Form
    {
        private FuncionarioBL fbl = new FuncionarioBL();
        public funcionario func;
        public FrmConsFuncionario()
        {
            InitializeComponent();
        }

        private void FrmConsFuncionario_Load(object sender, EventArgs e)
        {
            funcionarioBindingSource.DataSource = fbl.selecionar();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            funcionarioBindingSource.DataSource = fbl.selecionar(txtnome.Text);
        }

        private void dtGrdVwBloco_DoubleClick(object sender, EventArgs e)
        {
            func = ((coliseu.funcionario)funcionarioBindingSource.Current);
            this.Close();
        }


    }
}
